import React from 'react'
import App from '../views/App'
import About from '../views/About'
import PageA from '../views/About/pageA'
import Hooks from '../views/Hooks'
import UseState from '../views/Hooks/useState'

const routes = [
  {
    path: '/',
    exact: true,
    component: App,
  },
  {
    path: '/about',
    component: About,
  },
  {
    path: '/pagea',
    component: PageA,
  },
  {
    path: '/hooks',
    component: Hooks,
    children: [
      {
        path: '/hooks/useState',
        component: UseState,
      },
    ],
  },
]
export default routes
